/**** 库存信息管理 ****/

/**
 * 操作按钮 minxin
 * $fontColor 按钮字体颜色
 */
@mixin oparateButton($fontColor: #6d6d6d) {
    color: $fontColor;
    &:hover {
        color: lighten($fontColor, 8%);
    }
    &:active {
        color: $fontColor;
    }
}

// 商品信息表格
.goodsInfo {
    width: 100%;
    min-width: 866px;
    border-bottom: 1px solid #9d9d9d;
    border-collapse: collapse;
    th {
        padding: 6px;
        background-color: #3d3d3d;
        text-align-last: left;
        font-weight: normal;
        color: #ffffff;
    }
    tbody {
        tr:nth-child(even) {
            background-color: #dee5eb;
        }
        td {
            padding: 10px 6px;
            span {
                width: 2.5em;
                display: inline-block;
                user-select: none;
                cursor: pointer;
                &:nth-child(1) {
                    @include oparateButton(#1585e7);
                }
                &:nth-child(2) {
                    @include oparateButton(#0aaf6a);
                }
                &:nth-child(3) {
                    @include oparateButton(#f84c35);
                }
            }
        }
    }
}

// 分页按钮主容器
.PagingGroup {
    position: relative;
    margin-top: 16px;
    // 分页按钮部分
    .PagingGroupBox {
        position: absolute;
        top: 0;
        right: 0;
        button {
            height: 40px;
            margin: 0 2px;
            background-color: #f0f2f7;
            &:hover {
                background-color: #e6eaee;
            }
            &.active {
                background-color: #0c74cf;
                border: 1px solid darken(#0c74cf, 6%);
                color: #ffffff;
            }
            &[disabled] {
                background-color: #dadada;
                color: #6d6d6d;
                cursor: not-allowed;
            }
        }
        .PagingNumGroup, button, .ToAppointPage, .ToAppointPage span{
            display: inline-block;
            vertical-align: middle;
        }
        // 数字分页按钮组
        .PagingNumGroup {
            margin: 0 4px;
            button {
                width: 40px;
            }
        }
        // 跳转到指定页输入框
        .ToAppointPage {
            margin-left: 10px;
            input {
                width: 60px;
                margin: 0 6px; 
            }
            button {
                margin-left: 10px;
            }
        }
    }
}